﻿@using Single_SignOn.ResX
@model Single_SignOn.Areas.PDA.Models.ChangePassword

@{
    ViewBag.Title = "Index";
    Layout = "~/Areas/PDA/Views/Shared/_Layout.cshtml";
}

@using (Html.BeginForm("Submit", "ChangeSword", new AjaxOptions { HttpMethod = "POST" }))
{
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <div id="content">
        <table style="width: 100%; height: 100%;">
            <tr>
                <td style="width: 100%; text-align: center; vertical-align: middle;">
                    <div>
                        <fieldset>
                            <legend style="width: 100%; text-align: center; vertical-align: middle;">
                                <h5>@ResourceTools.GetResource("Resource", "ChangePasswordForm")</h5>
                            </legend>
                            <ol>
                                <li>
                                    @Html.LabelFor(m => m.UserName, new { @class="label"})<div class="error">
                                        @Html.ValidationMessageFor(m => m.UserName, "", new { @class = "error" })
                                    </div>
                                </li>
                                <li>
                                    @Html.TextBoxFor(m => m.UserName, new {@class = "textbox"})</li>
                                <li>
                                    @Html.LabelFor(m => m.OldPassword, new { @class="label"})<div class="error">
                                        @Html.ValidationMessageFor(m => m.OldPassword, "", new { @class = "error" })
                                    </div>
                                </li>
                                <li>
                                    @Html.PasswordFor(m => m.OldPassword, new {@class = "textbox"})</li>
                                <li>
                                    @Html.LabelFor(m => m.NewPassword, new { @class="label"})<div class="error">
                                        @Html.ValidationMessageFor(m => m.NewPassword, "", new { @class = "error" })
                                    </div>
                                </li>
                                <li>
                                    @Html.PasswordFor(m => m.NewPassword, new {@class = "textbox"})</li>
                                <li>
                                    @Html.LabelFor(m => m.ConfirmPassword, new { @class="label"})<div class="error">
                                        @Html.ValidationMessageFor(m => m.ConfirmPassword, "", new { @class = "error" })
                                    </div>
                                </li>
                                <li>
                                    @Html.PasswordFor(m => m.ConfirmPassword, new {@class = "textbox"})</li>
                            <div>
                                @Html.ValidationSummary(true,"",new {@class = "error"} )
                            </div>
                            </ol>
                            <p></p>
                            <input type="submit" class="button" style="width: 100px;" name="State:Save" id="Save" value="@ResourceTools.GetResource("Resource", "Submit")" title = "@ResourceTools.GetResource("Resource", "Submit")" />
                            <input type="submit" class="button" style="width: 100px;" name="State:Cancel" id="Cancel" value="@ResourceTools.GetResource("Resource", "Back")" title = "@ResourceTools.GetResource("Resource", "Back")" />
                        </fieldset>
                    </div>
                </td>
            </tr>
        </table>
    </div>
}